import time

from unit01.Page.Page import Page
from selenium import webdriver
import unittest
from ddt import ddt,file_data

@ddt()
class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver=webdriver.Firefox()
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(2)
        self.driver.quit()

    @file_data(r'C:\Users\Kaka\PycharmProjects\PythonProject38_811\unit01\Tool\aaaa.json')

    def test_a3ll_01(self,info):
        po=Page(self.driver)
        po.a3mm_yy_01(info)

if __name__ == '__main__':
    unittest.main()